home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wtek0693.zip / OOPALLEY.ZIP / IDENTDIC.H < prev    next >
C/C++ Source or Header  |  1993-04-27  |  1KB  |  33 lines

  1. #ifndef IDENTDICT_H
  2. #define IDENTDICT_H
  3.  
  4. #include "dict.h"
  5.  
  6. extern const Class class_IdentDict;
  7.  
  8. class LookupKey;
  9. class OrderedCltn;
  10.  
  11. ////////////////////////////////////////////////////////////
  12. // class IdentDict (declaration)
  13. ////////////////////////////////////////////////////////////
  14. class IdentDict: public Dictionary {
  15.                 // private member function
  16.     virtual int findIndexOf(const Object&) const;
  17. public:
  18.                 // constructors, destructors
  19.                 IdentDict(unsigned size =CLTN_DEFAULT_CAPACITY);
  20.                 IdentDict(const IdentDict&);
  21.  
  22.                 // operators
  23.     void        operator=(const IdentDict&);
  24.  
  25.     virtual LookupKey&      assocAt(const Object& key) const;
  26.     virtual Object*         atKey(const Object& key) const;
  27.     virtual Object*         atKey(const Object& key, const Object& newValue);
  28.     virtual bool            includesKey(const Object& key) const;
  29.     virtual const Class*    isA() const;
  30. };
  31.  
  32. #endif
  33.